import java.util.LinkedList;


public class NodeCity {
	
	private int name;
	private LinkedList<Edges> edges;
	
	public NodeCity(int name){
		this.setName(name);
		edges=new LinkedList<Edges>();
	}
	
	public void addEdge(Edges e){
		edges.add(e);
	}
	
	public Edges getEdge(int i){
		return edges.get(i);
	}
	
	public LinkedList<Edges> getList(){
		return edges;
	}

	/**
	 * @return the name
	 */
	public int getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(int name) {
		this.name = name;
	}

}
